package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.model.domain.OrderPoint;
import com.weixing.mall.provider.model.dto.ExchangeGoodsPointDto;
import com.weixing.mall.provider.model.query.OrderPointQuery;
import com.weixing.mall.provider.model.vo.OrderPointVo;

/**
 * <p>
 * 积分商品兑换订单 服务类
 * </p>
 *
 * @author Small
 * @since 2020-05-08
 */
public interface IOrderPointService extends IService<OrderPoint> {
    /**
     * 提交兑换商品信息
     */
    Result exchangeGoodsPoint(ExchangeGoodsPointDto exchangeGoodsPointDto, Long memberId);

    /**
     * 查看兑换积分商品记录
     */
    IPage<OrderPointVo> selectOrderPointList(Page page, OrderPointQuery orderPointQuery, Long memberId);

    /**
     * 变更兑换商品记录订单状态
     */
     Result updateOrderPointStatus(Long orderPointId,Integer status);
}
